首页> 外文OA文献 >Kindergarten Cop : dynamic nursery resizing for GHC
【2h】

Kindergarten Cop : dynamic nursery resizing for GHC

机译:幼儿园警察:调整GHC的动态幼儿园大小

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Generational garbage collectors are among the most popular garbage collectors used in programming language runtime systems. Their performance is known to depend heavily on choosing the appropriate size of the area where new objects are allocated (the nursery). In imperative languages, it is usual to make the nursery as large as possible, within the limits imposed by the heap size. Functional languages, however, have quite different memory behaviour. In this paper, we study the effect that the nursery size has on the performance of lazy functional programs, through the interplay between cache locality and the frequency of collections. We demonstrate that, in contrast with imperative programs, having large nurseries is not always the best solution. Based on these results, we propose two novel algorithms for dynamic nursery resizing that aim to achieve a compromise between good cache locality and the frequency of garbage collections. We present an implementation of these algorithms in the state-of-the-art GHC compiler for the functional language Haskell, and evaluate them using an extensive benchmark suite. In the best case, we demonstrate a reduction in total execution times of up to 88.5%, or an 8.7 overall speedup, compared to using the production GHC garbage collector. On average, our technique gives an improvement of 9.3% in overall performance across a standard suite of 63 benchmarks for the production GHC compiler.
机译:分代垃圾收集器是编程语言运行时系统中最流行的垃圾收集器。众所周知,它们的性能在很大程度上取决于选择新对象(托儿所)分配区域的适当大小。在命令式语言中,通常在不超出堆大小的范围内,使托儿所尽可能大。但是,功能语言具有完全不同的内存行为。在本文中,我们通过缓存局部性和收集频率之间的相互作用研究苗圃大小对懒惰功能程序的性能的影响。我们证明,与强制性计划相比,拥有大型托儿所并非总是最佳的解决方案。基于这些结果,我们提出了两种用于动态苗圃大小调整的新颖算法,旨在实现良好的缓存局部性和垃圾收集频率之间的折衷。我们在最新的GHC编译器中针对功能语言Haskell提出了这些算法的实现,并使用广泛的基准套件对其进行了评估。在最佳情况下,与使用生产GHC垃圾收集器相比,我们证明总执行时间最多减少88.5%,或总加速8.7。平均而言,我们的技术在生产GHC编译器的63组标准基准的标准套件中,使整体性能提高了9.3%。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号